//
//  WeatherViewController.m
//  Test
//
//  Created by 曾威林 on 2017/12/24.
//  Copyright © 2017年 jingyao. All rights reserved.
//

#import "WeatherViewController.h"
#import "Global.h"

@interface WeatherViewController ()

@end

@implementation WeatherViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    //这个margintop约束要依据每个手机的型号不同来判别
    NSString *phoneType = [Global iphoneType];
    NSLog(@"获取的手机型号是：%@", phoneType);
    
    if ([phoneType isEqualToString:@"x"]) {
        self.backBtnMarginTopConstraint.constant = 15;
    }else if ([phoneType isEqualToString:@"6p"]) {
        self.backBtnMarginTopConstraint.constant = 35;
    }
}

- (IBAction)backAction:(id)sender {
    [self dismissViewControllerAnimated:YES completion:nil];
}

@end
